<template>
	<view class="page">
 
 
		<view class="form">
			<u--form labelPosition="top" :model="item" :labelStyle="{width: '300rpx'}"   ref="uForm">
				<u-form-item label="通知内容"  prop="content"  borderBottom >
					{{content}}
					<view class="date">时间:{{date}}</view>
				</u-form-item>
			</u--form>
		</view>
 
	</view>
</template>

<script>
	import * as Config from '@/utils/config.js'  
	import * as EventApi from '@/api/event.js';
 
	export default {
		 
		data() {
            return {
				content:"",
				date:"",
				nid:""
			}
		},
		onLoad(e) { 
			console.log("e",e)
			this.nid=e.nid
			this.get_notice_detail(e) 
		},
		onShow() {
		},

		methods: {
			
		 
			
			
			get_notice_detail(e)
			{
				console.log("e",e)
			    EventApi.notice_detail(
				{
					nid: e.nid,
					member_nid:e.member_nid
				}
				).then(res => {
				console.log("res",res)
				this.content = res.info.content
				this.date = res.info.data
				console.log("this.content",this.content)
			})
			
			}
 
		},
		onReady() {
			//如果需要兼容微信小程序，并且校验规则中含有方法等，只能通过setRules方法设置规则。
			this.$refs.uForm.setRules(this.rules)
		},
	}
</script>

<style scoped lang="scss">
	@import url("asset/style.css");
</style>